import open3d as o3d
import numpy as np

#点云读取
pcd = o3d.io.read_point_cloud("../datasets/standford_cloud_data/China dragon.pcd", print_progress=True)
#输出点云信息
print(pcd)#输出点云点的个数
print(np.asarray(pcd.points))#输出点的三维坐标
#点云保存
# o3d.io.write_point_cloud("write_cloud.pcd", pcd)
#显示点云
o3d.visualization.draw_geometries([pcd],width=720,height=720)
